package com.ys.enume.sys;

public class YsSynLogEnum {
	// 类型
	public enum Type {
		YS_Menu("同步菜单", 1, "YS_Menu"),
		YS_Col("同步字段", 2, "YS_Col"),
		YS_Button("同步按钮", 3, "YS_Button"),
		YS_Grid("同步子列表", 4, "YS_Grid"),
		YS_GridCol("同步子列表字段", 5, "YS_GridCol"),
		YS_GridButton("同步子列表按钮", 6, "YS_GridButton"),
		YS_ModalSelector("同步弹出框", 7, "YS_ModalSelector"),
		YS_ModalSelectorField("同步弹出框字段", 8, "YS_ModalSelectorField"),
		YSP_Model("同步流程-模型", 9, "YSP_Model"),
		YSP_Def("同步流程-定义", 10, "YSP_Def"),
		YSP_DefLink("同步流程-连接线", 11, "YSP_DefLink"),
		YSP_DefNode("同步流程-节点", 12, "YSP_DefNode"),
		YSP_Deploy("同步流程-部署", 13, "YSP_Deploy"),
		YS_Dict("同步数据字典", 14, "YS_Dict"),
		YS_RowClickGridCol("同步行单击字段", 15, "YS_RowClickGridCol");
		public String name;
		public Integer value;
		public String tableName;

		private Type(String name, Integer value, String tableName) {
			this.name = name;
			this.value = value;
			this.tableName = tableName;
		}

		public static String getTableName(int value) {
			for (Type e : Type.values()) {
				if (e.value == value) {
					return e.tableName;
				}
			}

			return "";
		}
	}
}
